import request from '@/utils/request'

// 查询订单列表
export function listInfo(query) {
    return request({
        url: '/order/info/list',
        method: 'get',
        params: query
    })
}

// 查询订单详细
export function getInfo(orderNo) {
    return request({
        url: '/order/info/' + orderNo,
        method: 'get'
    })
}

// 新增订单
export function addInfo(data) {
    return request({
        url: '/order/info',
        method: 'post',
        data: data
    })
}

// 修改订单
export function updateInfo(data) {
    return request({
        url: '/order/info',
        method: 'put',
        data: data
    })
}

// 删除订单
export function delInfo(orderNo) {
    return request({
        url: '/order/info/' + orderNo,
        method: 'delete'
    })
}

// 导出订单
export function exportInfo(query) {
    return request({
        url: '/order/info/export',
        method: 'get',
        params: query
    })
}